package com.wenwu.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.Resource;
import com.wenwu.common.bean.ResourceExample;

public interface ResourceMapper extends Dao {
	int countByExample(ResourceExample example);

	int deleteByExample(ResourceExample example);

	int deleteByPrimaryKey(Integer sourceId);

	int insert(Resource record);

	int insertSelective(Resource record);

	List<Resource> selectByExample(ResourceExample example);

	Resource selectByPrimaryKey(Integer sourceId);

	int updateByExampleSelective(@Param("record") Resource record,
			@Param("example") ResourceExample example);

	int updateByExample(@Param("record") Resource record,
			@Param("example") ResourceExample example);

	int updateByPrimaryKeySelective(Resource record);

	int updateByPrimaryKey(Resource record);

	int deleteResourceByKey(List<?> list);

	List<Resource> selectResourceByRoleid(List<?> ids) throws SQLException;

	int updateChildren(Resource record) throws SQLException;
}